From 9c8277a2d8bdfcd8022ba16b99dcbd1e3849beff Mon Sep 17 00:00:00 2001 From: "stekloff@elm3b216.beaverton.ibm.com" Date: Fri, 19 May 2006 16:29:34 +0100 Subject: [PATCH] This patch resizes the file system on the xm-test HVM disk.img to use the entire space available. Signed-off-by: Daniel Stekloff --- tools/xm-test/ramdisk/bin/create_disk_image | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/xm-test/ramdisk/bin/create_disk_image b/tools/xm-test/ramdisk/bin/create_disk_image index bde4b2dede..513af46d35 100644 --- a/tools/xm-test/ramdisk/bin/create_disk_image +++ b/tools/xm-test/ramdisk/bin/create_disk_image @@ -208,6 +208,13 @@ function dd_rootfs_to_image() if [ $? -ne 0 ]; then die "Failed to dd $ROOTFS to $LOOPP." fi + + # Resize fs to use full partition + e2fsck -f $LOOPP + resize2fs $LOOPP + if [ $? -ne 0 ]; then + die "Failed to resize rootfs on $LOOPP." + fi } function get_kernel() -- 2.30.2